.gallery-container {
  display: flex; /* Change to flex for horizontal scrolling */
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 auto;
  width: 80%; /* Adjust width as needed */
  max-width: 700px; /* Limit width on larger screens (optional) */
}

.photo-container {
  position: relative; /* Not needed anymore */
  overflow: hidden; /* Needed for overlay */
  width: 200px; /* Adjust width for desired photo size (medium) */
  margin: 10px;
  cursor: pointer;
}

.photo-container img {
  width: 100%; /* Fill container width */
  height: auto; /* Maintain aspect ratio */
  transition: transform 0.3s ease-in-out; /* Remove transition (optional) */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  opacity: 0; /* Initially invisible */
  transition: opacity 0.3s ease;
}

.overlay.text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff; /* White text color */
}

.overlay.text h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.overlay.text p {
  margin-bottom: 10px;
   font-size: 1.1rem;
}

.photo-container:hover.overlay {
  display: block; /* Show overlay on hover */
}

.photo-container.enlarged {
  width: 100%; /* Enlarge photo on click */
  height: auto;
  margin: 0;
  cursor: default; /* Remove pointer cursor */
}

.photo-container.enlarged img {
  width: 100%; /* Fill container width */
  height: auto; /* Maintain aspect ratio */
}
